.chat-list-container {
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--gray-50) 100%);
  scroll-behavior: smooth;
  padding: var(--space-4);
}

.chat-list-container::-webkit-scrollbar {
  width: 8px;
}

.chat-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chat-list-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-300), var(--primary-500));
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-list-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-400), var(--primary-600));
}

.chat-list-phantom {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: -1;
}

.chat-list {
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  padding: var(--space-6) var(--space-8);
}

.chat-list-item {
  padding: var(--space-3) 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--space-2);
}

.chat-list-item:hover {
  transform: translateX(4px);
}

/* 空状态样式 */
.chat-list-container:empty::before {
  content: '开始您的AI对话之旅';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--bg-elevated), var(--gray-50));
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* 加载状态 */
.chat-list-container.loading {
  background: linear-gradient(90deg, 
    var(--bg-primary) 0%, 
    var(--gray-50) 50%, 
    var(--bg-primary) 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 滚动到底部指示器 */
.scroll-to-bottom {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary-600);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-bottom:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .chat-list {
    padding: var(--space-3) var(--space-4);
  }
  
  .scroll-to-bottom {
    bottom: 80px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .chat-list-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  
  .chat-list-container::-webkit-scrollbar-thumb {
    background: var(--border-medium);
  }
  
  .chat-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
  }
}